const http = require('http')
const fs   = require('fs')

const server = http.createServer((req, res) => {
	if (req.url === '/favicon.ico') {
		return
	}
	fs.stat('./album/aaa', (err, data) => {
		if (err) {
			throw err
		}
		console.log(data.isDirectory())
	})
})

server.listen(3000,"127.0.0.1", () => {
	console.log('running')
})